/**
 * 
 */
package com.cait.dutyfree.exception;

/**
 * @author Rasika Kaluwalgoda
 *
 */
public class DutyFreeException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 660408033223264660L;
	
    private int errorCode;
    private Exception e;
    
	/**
	 * @param errorCode
	 * @param e
	 */
	public DutyFreeException(int errorCode, Exception e) {
		super();
		this.errorCode = errorCode;
		this.e = e;
	}
 
    @Override
    public String getMessage(){
        return e.getMessage();
    }

	/**
	 * @return the errorCode
	 */
	public int getErrorCode() {
		return errorCode;
	}

    

}
